Skip to content

Update GIAnT-Python with the latest aind python template - #99

Merged
varndorfer merged 15 commits into
mainfrom
update-repo-with-python-template
Dec 4, 2026
Merged

varndorfer merged 15 commits into
mainfrom
update-repo-with-python-template

Conversation

@varndorfer

@varndorfer varndorfer commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Closes https://github.com/AllenNeuralDynamics/slap2-dev/issues/74

Updating the repo with the most recent aind python template

Fixes all the linting, formatting, and docstring errors that were failing the new workflow checks

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The release workflow’s uv version command is incompatible with dynamic VCS versioning and fails before tagging, while the hard-coded runtime version causes incorrect provenance in subsequent releases.

2 open issues
What changed in this PR

Updates GIAnT-Python to the latest AIND Python template, modernizing development tooling, packaging, and automation.

Changes:

  • Migrates to Hatch/VCS versioning, uv, Ruff, and coverage-enabled testing.
  • Updates release workflows, documentation configuration, and contributor guidance.
  • Adds type annotations and expands docstrings across source code and tests.
File Description
tests/​viewer/​test_viewer_server.py Types server fixtures and tests.
tests/​viewer/​synthetic.py Types and documents synthetic sessions.
tests/​spine/​test_spine_readout.py Annotates tests and refreshes docstrings.
tests/​spine/​test_spine_qc.py Types quality-control tests and helpers.
tests/​spine/​conftest.py Types worker fixtures and hooks.
tests/​registration/​test_cli.py Types CLI tests and mocks.
tests/​registration/​synthetic.py Documents and types recording generators.
tests/​raster/​wmf_reference.py Types MATLAB fixture readers.
tests/​raster/​test_raster_wmf_deblend.py Annotates and reformats deblending tests.
tests/​raster/​test_raster_stage_files.py Types file round-trip tests.
tests/​raster/​test_raster_silo_noise_seeds.py Types fixtures and organizes imports.
tests/​raster/​test_raster_seeding.py Annotates tests and updates docstrings.
tests/​raster/​test_raster_refit.py Types refit tests and helpers.
tests/​raster/​test_raster_kinetics.py Types kinetics tests and fixtures.
tests/​raster/​test_raster_container.py Types container tests and failure mocks.
tests/​raster/​test_raster_annotations.py Types annotation tests and writers.
tests/​raster/​data/​make_matlab_wmf_h5.py Types fixture conversion arguments.
tests/​raster/​data/​make_matlab_kinetics_h5.py Refreshes documentation and formatting.
tests/​raster/​data/​compare_matlab_wmf.py Types and documents comparison helpers.
tests/​raster/​alignment_synthetic.py Types synthetic alignment helpers.
tests/​annotator/​synthetic.py Types and documents session fixtures.
tests/​annotator/​__init__.py Simplifies package docstring markup.
tests/​__init__.py Updates the test package docstring.
src/​giant_python/​viewer/​__init__.py Simplifies viewer documentation markup.
src/​giant_python/​spine/​view/​__init__.py Restructures viewer package documentation.
src/​giant_python/​spine/​readout.py Types readout inputs and returns.
src/​giant_python/​spine/​qc.py Types quality-control APIs.
src/​giant_python/​spine/​__init__.py Simplifies package documentation markup.
src/​giant_python/​simulation/​render.py Modernizes rendering types and docstrings.
src/​giant_python/​registration/​template.py Types template helpers and state.
src/​giant_python/​registration/​stats/​worker.py Types worker callbacks and tensors.
src/​giant_python/​registration/​stats/​session.py Types statistics alignment inputs.
src/​giant_python/​registration/​stats/​io.py Modernizes types and documents codecs.
src/​giant_python/​registration/​stats/​__init__.py Types accumulator creation.
src/​giant_python/​registration/​interpolation.py Types interpolation helpers.
src/​giant_python/​registration/​__init__.py Simplifies package documentation markup.
src/​giant_python/​progress.py Modernizes iterable and optional types.
src/​giant_python/​pipeline/​pipeline.py Modernizes facade types and docstrings.
src/​giant_python/​pipeline/​extract.py Updates types and exception documentation.
src/​giant_python/​pipeline/​annotate.py Updates annotation API documentation.
src/​giant_python/​pipeline/​__init__.py Reorders exports and updates documentation.
src/​giant_python/​numerics/​morphology.py Modernizes optional kernel typing.
src/​giant_python/​numerics/​interpolation.py Refreshes formatting and documentation.
src/​giant_python/​numerics/​baseline.py Modernizes return types and formatting.
src/​giant_python/​models/​trial_table.py Modernizes model field annotations.
src/​giant_python/​models/​__init__.py Reorders public exports.
src/​giant_python/​io/​trial_table.py Adds explicit model return types.
src/​giant_python/​io/​tiff.py Modernizes path typing and documentation.
src/​giant_python/​io/​annotations.py Types writer helpers and documents returns.
src/​giant_python/​io/​__init__.py Types and documents lazy codec exports.
src/​giant_python/​gui/​roi_editor.py Types GUI helpers and documents outputs.
src/​giant_python/​gui/​parameters_gui.py Types callbacks and optional results.
src/​giant_python/​extraction/​raster/​__init__.py Restructures package documentation.
src/​giant_python/​extraction/​band/​types.py Simplifies result documentation markup.
src/​giant_python/​extraction/​band/​rois.py Documents ROI helper return values.
src/​giant_python/​extraction/​band/​result_assembly.py Modernizes types and documents assembly outputs.
src/​giant_python/​extraction/​band/​motion_binning.py Modernizes tuple return annotations.
src/​giant_python/​extraction/​band/​geometry.py Modernizes imports, types, and docstrings.
src/​giant_python/​extraction/​band/​annotation.py Documents annotation results and errors.
src/​giant_python/​export/​__init__.py Simplifies export documentation markup.
src/​giant_python/​cli_spine.py Types CLI helpers and documents errors.
src/​giant_python/​annotator/​__init__.py Restructures annotator documentation.
src/​giant_python/​__init__.py Documents lazy exports and completion.
setup.py Removes the setuptools entry point.
pyproject.toml Configures Hatch, dependency groups, Ruff, and coverage.
LICENSE Updates copyright attribution.
examples/​extract_band.py Expands helper and validation documentation.
docs/​source/​conf.py Updates version lookup and Sphinx configuration.
CONTRIBUTING.md Documents the uv-based development workflow.
.gitignore Ignores test and coverage artifacts.
.github/​workflows/​tests_and_format_check.yml Adds uv-based lint and test checks.
.github/​workflows/​tag_and_publish.yml Adopts shared badge and tagging workflows.
.github/​workflows/​lint.yml Removes the previous lint workflow.
.gitattributes Configures text handling and lockfile classification.
.flake8 Removes obsolete Flake8 configuration.
.copier-answers.yml Records template generation settings.

Review effort: Balanced

Comment thread .github/workflows/tag_and_publish.yml Resolved
Comment thread pyproject.toml Resolved
Set the version in pyproject.toml (the field 'uv version' updates in the tag_and_publish bump workflow), drop hatch-vcs, and read giant_python.__version__ from the installed package metadata so saved results record the same version as the distribution.
@varndorfer
varndorfer merged commit 071cf1e into main Dec 4, 2026
3 checks passed
@varndorfer
varndorfer deleted the update-repo-with-python-template branch December 4, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants